FROM  adoptopenjdk/openjdk8:ubi
MAINTAINER lei
ARG JAR_FILE=zj-gateway-1.0.jar
VOLUME /app
WORKDIR /app
COPY ${JAR_FILE}  app.jar
EXPOSE 10003
ENTRYPOINT ["java", "-jar", "app.jar"]

# 构建
# docker image build -t cer-gateway:1.0 .
# docker image build -t wleics/cer-gateway:1.0 .

# 运行
# docker container run -itd -p 10003:10003 cer-gateway:1.0 --name cer-gateway

# docker container run -itd -p 10003:10003 -v gateway-data:/app cer-gateway:1.0 --name cer-gateway

# 发布
# docker push wleics/cer-gateway:1.0
# docker container run -itd -p 10003:10003 wleics/cer-gateway:1.0 --name cer-gateway
